import datetime
import random


class NumOper:

    @staticmethod
    def get_random_num(little_num=0, big_num=100):
        """
        获取随机整数
        :param little_num:
        :param big_num:
        :return:
        """
        one_num = random.randint(little_num, big_num)
        return one_num

    @staticmethod
    def get_random_sed_num(seed, bignum=500):
        """
        获取随机种子随机数
        :param bigest:
        :param seed:
        :return:
        """
        now_time = datetime.datetime.now()
        now_time_str = now_time.strftime("%Y%m%d")
        new_seed = str(seed) + now_time_str
        random.seed(new_seed)
        random_num = int(random.random() * bignum)
        return random_num
